package org.xiaojl.xcloud.tools.gateway.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**  
 * <p>Title: LimitRateProperties</p>  
 *
 * <p>Description: 服务限流的配置</p>  
 *
 * @author jilong.xiao  
 * @date 2018年5月15日  
 */
@Configuration
@ConfigurationProperties(prefix="xcloud.gateway.limitRate")
public class LimitRateProperties {
	/**
	 * 单节点限流速率 xcloud.gateway.limitRate
	 */
	private Double singleLimitRate = 10d;  
	/**
	 * 集群限流速率 xcloud.gateway.clusterLimitRate
	 */
	private Double clusterLimitRate = 10d;
	
	public Double getSingleLimitRate() {
		return singleLimitRate;
	}
	public void setSingleLimitRate(Double singleLimitRate) {
		this.singleLimitRate = singleLimitRate;
	}
	public Double getClusterLimitRate() {
		return clusterLimitRate;
	}
	public void setClusterLimitRate(Double clusterLimitRate) {
		this.clusterLimitRate = clusterLimitRate;
	}
	
}
